package service;

import domain.MyConfiguration;
import domain.cms.CmsHomePage;
import web.admin.config.DirectoryPathException;

import java.io.IOException;


public interface ConfigurationService {

    public void updateConfiguration(MyConfiguration myConfiguration) throws Exception;

    public void saveTemplate(String templateStream,
                             String fileName) throws IOException, DirectoryPathException;

    public String loadTemplate(String path) throws IOException, DirectoryPathException;

    public MyConfiguration getConfig();

    public void updateCmsHomePage(CmsHomePage cmsHomePage) throws Exception;

    CmsHomePage getCmsHomePage();
}
